package com.spring.le.service.impl;

import com.spring.le.dao.AddressDao;
import com.spring.le.dao.impl.AddressDaoImpl;
import com.spring.le.model.Address;
import com.spring.le.service.AddressService;
import lombok.Setter;

public class AddressServiceImpl implements AddressService {

    private AddressDao addressDao;

    public AddressServiceImpl(AddressDao addressDao) {
        this.addressDao = addressDao;
    }

    @Override
    public Address select(int id) {
        return addressDao.selectById(id);
    }
}
